package com.example.qinghe.dao.meeting;


import com.example.qinghe.entity.meeting.Mattendance;
import com.example.qinghe.entity.meeting.Meeting;
import com.example.qinghe.entity.meeting.Meetingroom;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface MeetingMapper {



    List<Meeting> selectAll();

    Meeting selectById(Long id);

    String selectAttendeesById(Long id);  //根据会议id 查找出参会人员id  调用通讯录接口，返回，名字和头像

    int countAttendedByMeetingId(Long id); //查找所有应参会人员的数量，记得加上主持人和演讲嘉宾

    List<Mattendance> selectMattendInfoByMeetingId(Long id);//一对多查找

    String selectImgById(Long id); //一对一查找


    String selectMeetingPlace(Long id);//一对一查找

    public int meetingadd(Meeting meeting);

    List<Meeting> selectByRoomId(Long roomId);


    List<Meeting> getMeetingIncludeRoom();

    Meeting getMeetingIncludeRoomById(Long id1);
}
